{% extends "base.html" %} {% block title %}Book Appointment with {{ doctor.user.name }} - Quick Care Connect{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Get Confirmed Appointment Online

{{ form.hidden_tag() }} {% if practices %}

Select Hospital/Clinic

{% for practice_name, practice_data in practices.items() %} {% if practice_data.get('video_price') %}
Video Consultation
Online
Rs. {{ "%.0f"|format(practice_data.video_price) }}
{% if practice_data.days %} {% for day_name, day_data in practice_data.days.items() %}
{{ day_name|title }}: {{ day_data.start_time }} - {{ day_data.end_time }}
{% endfor %} {% endif %}
{% endif %} {% if practice_data.get('physical_price') %}
{{ practice_name }}
Area: {% if practice_data.get('location') %}{{ practice_data.location }}{% else %}{{ doctor.city|title if doctor.city else 'N/A' }}{% endif %}{% if doctor.city %}, {{ doctor.city|title }}{% endif %}
Rs. {{ "%.0f"|format(practice_data.physical_price) }}
{% if practice_data.days %} {% for day_name, day_data in practice_data.days.items() %}
{{ day_name|title }}: {{ day_data.start_time }} - {{ day_data.end_time }}
{% endfor %} {% endif %}
{% endif %} {% endfor %}
{% endif %}

Select Date & Time

{% if form.appointment_date.errors %}
{% for error in form.appointment_date.errors %}
{{ error }}
{% endfor %}
{% endif %}
{% if form.appointment_time.errors %}
{% for error in form.appointment_time.errors %}
{{ error }}
{% endfor %}
{% endif %}
  • Get contact details and clinic directions in message
  • Priority customer support if needed
{% set avg_rating = review_stats.average_rating if review_stats is defined else 0 %} {% set total_reviews = review_stats.total_reviews if review_stats is defined else 0 %} {% set full_stars = avg_rating|int %} {% set has_half_star = 1 if (avg_rating - full_stars) >= 0.5 else 0 %} {% set empty_stars = 5 - full_stars - has_half_star %}
{{ total_reviews }} Reviews
{{ '%.1f'|format(avg_rating) }}
{% for _ in range(full_stars) %} {% endfor %} {% if has_half_star %} {% endif %} {% for _ in range(empty_stars) %} {% endfor %}
{% if total_reviews > 0 %} Average rating based on {{ total_reviews }} reviews. {% else %} No ratings yet. {% endif %}
{% if total_reviews > 0 %}
Patient Satisfaction
{{ '%.1f'|format(review_stats.patient_satisfaction) }}/5
Diagnosis
{{ '%.1f'|format(review_stats.diagnosis_accuracy) }}/5
Staff Behaviour
{{ '%.1f'|format(review_stats.staff_behaviour) }}/5
Clinic Environment
{{ '%.1f'|format(review_stats.clinic_environment) }}/5
{% endif %}

Reason for Visit

{{ form.reason_for_visit.label(class="form-label") }} {{ form.reason_for_visit(class="form-control") }} {% if form.reason_for_visit.errors %}
{% for error in form.reason_for_visit.errors %}
{{ error }}
{% endfor %}
{% endif %}
{{ form.submit(class="submit-btn", id="book_appointment_btn") }}
{% endblock %}